package nckd.wnqjt.tmc.tda.plugin.form;

import kd.bos.entity.report.ReportQueryParam;
import kd.bos.report.ReportShowParameter;
import kd.bos.report.plugin.AbstractReportFormPlugin;
import org.apache.commons.lang3.ObjectUtils;

import java.util.Map;

/**
 * @author zhujintao
 * @date 2024/11/05
 * @desc  资金总额按银行大类
 */
public class TotalFundsByBankDetailFormPlugin extends AbstractReportFormPlugin {
    @Override
    public void initDefaultQueryParam(ReportQueryParam queryParam) {
        super.initDefaultQueryParam(queryParam);
    }

    @Override
    public void beforeQuery(ReportQueryParam queryParam) {
        super.beforeQuery(queryParam);
    }

    @Override
    public boolean verifyQuery(ReportQueryParam queryParam) {
        ReportShowParameter parameter = (ReportShowParameter) this.getView().getFormShowParameter();
        Map<String, Object> customParams = parameter.getReportQueryParam().getCustomParam();
        if (ObjectUtils.isNotEmpty(customParams)) {
            queryParam.setCustomParam(customParams);
            //queryParam.getCustomParam().put("qingFilter", customParams);
        }
        return super.verifyQuery(queryParam);
    }

}